<template>
    <div class="container">
        <div class="con">
            <yd-cell-group>
                <yd-cell-item>
                    <span slot="left">账号</span>
                    <span slot="right">{{item.accountId}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">出金MT5交易账号</span>
                    <span slot="right">{{item.mt5Account}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">出金金额（USD）</span>
                    <span slot="right">{{item.orderAmountUSD}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">订单号</span>
                    <span slot="right">{{item.orderId}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">申请时间</span>
                    <span slot="right">{{item.createTime}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">出金时间</span>
                    <span slot="right">{{item.auditTime}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">出金状态</span>
                    <span slot="right">{{item.status==1?'已出金':(item.status==0?'正在审核':'出金失败')}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">备注</span>
                    <span slot="right">{{item.remark}}</span>
                </yd-cell-item>
            </yd-cell-group>
            <div class="text-center">
                <yd-button type="hollow" @click.native="goBack()">返回</yd-button>
            </div>
        </div>
    </div>
</template>
<script>
    import AjaxHttp from '../../js/ajaxHttp.js';
    import Tool from '../../js/tools.js';
    export default{
        data(){
            return {
                item: ''
            }
        },
        created(){
            var id = Tool.getUrlKey('id');
            this.getItem(id);
        },
        methods: {
            getItem(id){
                const _this = this;
                AjaxHttp.getHttp('fxsys/inOUTCash/inOutCashDetail?id=' + id).then(function (response) {
                    console.log(response);
                    _this.item = response;
                });
            },
            goBack(){
                history.go(-1);
            }
        }
    }
</script>